go/types.Array.len (field)
29 uses
go/types (current package)
array.go#L9: len int64
array.go#L15: func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
array.go#L19: func (a *Array) Len() int64 { return a.len }
builtins.go#L180: if t.len >= 0 {
builtins.go#L181: val = constant.MakeInt64(t.len)
expr.go#L1330: typ = &Array{len: -1, elem: check.varType(atyp.Elt)}
expr.go#L1435: n := check.indexedElts(e.Elts, utyp.elem, utyp.len)
expr.go#L1444: if utyp.len < 0 {
expr.go#L1445: utyp.len = n
index.go#L69: length = typ.len
index.go#L78: length = typ.len
index.go#L121: l = t.len
index.go#L128: l = t.len
index.go#L248: length = u.len
index.go#L259: length = u.len
predicates.go#L198: return (x.len < 0 || y.len < 0 || x.len == y.len) && identical(x.elem, y.elem, cmpTags, p)
sizes.go#L139: n := t.len
subst.go#L94: return &Array{len: t.len, elem: elem}
typestring.go#L144: w.string(strconv.FormatInt(t.len, 10))
typexpr.go#L298: typ.len = check.arrayLength(e.Len)
typexpr.go#L300: if typ.len >= 0 {
unify.go#L410: return (x.len < 0 || y.len < 0 || x.len == y.len) && u.nify(x.elem, y.elem, p)